package com.fortune.dao;

import com.fortune.dto.in.dStore.DstoreAddDto;
import com.fortune.dto.in.dStore.DstoreEditDto;
import com.fortune.dto.in.dStore.DstoreListDto;
import com.fortune.vo.dStore.DstoreInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2018/5/26 0026.
 */
public interface DstoreDao {

    List<DstoreInfo> findStoreList(@Param("dstoreListDto")DstoreListDto dstoreListDto,@Param("mid")String mid,@Param("did")String did);

    int findStoreListCount(@Param("dstoreListDto")DstoreListDto dstoreListDto,@Param("mid")String mid,@Param("did")String did);

    int findRepeat(@Param("name") String name,@Param("mid")String mid,@Param("did")String did);

    int findRepeats(@Param("name") String name,@Param("mid")String mid,@Param("id")String id,@Param("did")String did);

    int insertStore(@Param("dstoreAddDto") DstoreAddDto dstoreAddDto,@Param("mid") String mid,@Param("did")String did,@Param("id") String id);

    int editStore(@Param("editDto")DstoreEditDto editDto,@Param("mid")String mid,@Param("did")String id);

    int deleteStore(@Param("mid")String mid,@Param("id")String storeId,@Param("did")String did);
}
